package watercalc.comparators;

import java.util.Comparator;
import watercalc.Vertex;

//Class used to sort an stl container of Vertex* with stable vertexes first
public class StabilityComparator implements Comparator<Vertex> {
 @Override
 public int compare(Vertex v1, Vertex v2) {
 	if ( v1.stable != v2.stable ) {
 		return v1.stable ? -1 : 1;
 	}
 	return 0;
 }
}